import getters from './getters';
import actions from './actions';
import mt from './mutations_type';

const state = {
  provincesList: [],
  userInfo: {},
  shareObj: {},
};

export default {
  state,
  mutations: {
    [mt.SetPovinceList](states, data) {
      state.provincesList = data || [];
    },
    [mt.SetUserInfo](states, data) {
      state.userInfo = data || {};
    },
  },
  actions,
  getters,
};
